package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kla.power.vo.BaseEntity;
import java.util.Date;
import java.util.List;

import com.kla.power.vo.YearReportVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 逆变器电量统计，每日凌晨更新昨日发电量，用于显示逆变器详情页
 * </p>
 *
 * @author WuZH
 * @since 2024-06-02
 */
@Getter
@Setter
@TableName("inverter_amount_statistics_day_info")
@ApiModel(value = "InverterAmountStatisticsDayEntity对象", description = "逆变器电量统计，每日凌晨更新昨日发电量，用于显示逆变器详情页")
public class InverterAmountStatisticsDayEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("昨日电量")
    @TableField("yesterdayPower")
    private String yesterdayPower;

    @ApiModelProperty("逆变器SN")
    @TableField("inverterSn")
    private String inverterSn;

    @TableField("collectorTime")
    private Date collectorTime;

    @ApiModelProperty("数据所属月份")
    @TableField("monthTime")
    private String monthTime;

    @ApiModelProperty("数据所属月份")
    @TableField("month")
    private String month;

    @TableField("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField("isUsed")
    private Integer isUsed;

    @TableField(exist = false)
    private String stationName;

    @TableField(exist = false)
    private String deviceSn;

    @TableField(exist = false)
    private String power;

    @TableField(exist = false)
    private String deviceTitle;

    //月报表
    @JsonFormat(pattern = "yyyy-MM")
    @TableField(exist = false)
    private Date monthDate;

    //年报表
    @JsonFormat(pattern = "yyyy-MM")
    @TableField(exist = false)
    private String year;

    @TableField(exist = false)
    private List<Double> powers;

    @TableField(exist = false)
    private String day;

    @TableField(exist = false)
    private Double sum;

}
